package com.zipking.cloud.springbootmybatis.redisson;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum RedisDelayQueueEnum {
    ORDER_PAYMENT_TIMEOUT("ORDER_PAYMENT_TIMEOUT", "订单支付超时，自动取消订单", "orderPaymentTimeout"),

    USER_COUPON_TIMEOUT_REMINDER("USER_COUPON_TIMEOUT_REMINDER","用户优惠卷过期提醒","userCouponTimeoutReminder"),
    WX_MSG_SEND("WX_MSG_SEND","消息发送","wxMsgSendTask");

    /**
     * 延迟队列 Redis Key
     */
    private String code;

    /**
     * 中文描述
     */
    private String name;

    /**
     * 延迟队列具体业务实现的 Bean
     * 可通过 Spring 的上下文获取
     */
    private String beanId;

}
